.class public Les/mb;
.super Ljava/lang/Object;
.source "VideoInfoProvider.java"


# direct methods
.method public static a(Landroid/content/Context;Ljava/lang/String;)Lcom/esfile/screen/recorder/provider/entity/b;
    .locals 1
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p0, v0}, Les/lb;->b(Landroid/content/Context;Ljava/io/File;)Lcom/esfile/screen/recorder/provider/entity/a;

    move-result-object p0

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 2
    :cond_0
    invoke-static {p0}, Les/mb;->a(Lcom/esfile/screen/recorder/provider/entity/a;)Lcom/esfile/screen/recorder/provider/entity/b;

    move-result-object p0

    return-object p0
.end method

.method public static a(Lcom/esfile/screen/recorder/provider/entity/a;)Lcom/esfile/screen/recorder/provider/entity/b;
    .locals 6
    .param p0    # Lcom/esfile/screen/recorder/provider/entity/a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->h()Ljava/lang/String;

    move-result-object v0

    .line 4
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 6
    :cond_0
    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    .line 7
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    const-string v4, "."

    invoke-virtual {v2, v4}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v2, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    .line 8
    new-instance v5, Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-direct {v5}, Lcom/esfile/screen/recorder/provider/entity/b;-><init>()V

    .line 9
    invoke-virtual {v5, v0}, Lcom/esfile/screen/recorder/provider/entity/b;->e(Ljava/lang/String;)V

    .line 10
    invoke-virtual {v5, v2}, Lcom/esfile/screen/recorder/provider/entity/b;->c(Ljava/lang/String;)V

    .line 11
    invoke-virtual {v5, v3}, Lcom/esfile/screen/recorder/provider/entity/b;->d(Ljava/lang/String;)V

    .line 12
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->g()J

    move-result-wide v2

    invoke-virtual {v5, v2, v3}, Lcom/esfile/screen/recorder/provider/entity/b;->c(J)V

    .line 13
    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v2

    invoke-virtual {v5, v2, v3}, Lcom/esfile/screen/recorder/provider/entity/b;->d(J)V

    .line 14
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->f()J

    move-result-wide v2

    invoke-virtual {v5, v2, v3}, Lcom/esfile/screen/recorder/provider/entity/b;->b(J)V

    .line 15
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->j()Z

    move-result v0

    invoke-virtual {v5, v0}, Lcom/esfile/screen/recorder/provider/entity/b;->c(Z)V

    .line 16
    invoke-virtual {v5, v4}, Lcom/esfile/screen/recorder/provider/entity/b;->a(Z)V

    .line 17
    invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    if-nez v0, :cond_1

    const-string v0, ""

    goto :goto_0

    .line 18
    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    .line 19
    :goto_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->e()I

    move-result v1

    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->a(I)V

    .line 20
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->d()J

    move-result-wide v1

    invoke-virtual {v5, v1, v2}, Lcom/esfile/screen/recorder/provider/entity/b;->a(J)V

    .line 21
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->b()[J

    move-result-object v1

    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->a([J)V

    .line 22
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->b(Ljava/lang/String;)V

    .line 23
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->a(Ljava/lang/String;)V

    .line 24
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/provider/entity/a;->i()Z

    move-result p0

    invoke-virtual {v5, p0}, Lcom/esfile/screen/recorder/provider/entity/b;->b(Z)V

    .line 25
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v1, "/ESedited"

    invoke-static {p0, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    const/4 v1, 0x1

    if-eqz p0, :cond_2

    .line 26
    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->b(I)V

    goto :goto_1

    .line 27
    :cond_2
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v2, "/VideoEdit"

    invoke-static {p0, v2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_3

    const/4 p0, 0x2

    .line 28
    invoke-virtual {v5, p0}, Lcom/esfile/screen/recorder/provider/entity/b;->b(I)V

    goto :goto_1

    .line 29
    :cond_3
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v2, "/Repaired"

    invoke-static {p0, v2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_4

    .line 30
    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->b(I)V

    .line 31
    invoke-virtual {v5, v1}, Lcom/esfile/screen/recorder/provider/entity/b;->a(Z)V

    goto :goto_1

    .line 32
    :cond_4
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v0, "/ProductionVideo"

    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    :goto_1
    return-object v5
.end method
